home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Sprocket Framework DR2 / Sprocket Framework Interfaces / AEThreads.h < prev    next >
Text File  |  1996-05-22  |  668b  |  36 lines

  1. // Sprocket Framework header file
  2. // AEThreads.h
  3.  
  4.  
  5.  
  6. #ifndef __AETHREADS__
  7. #define __AETHREADS__
  8. #pragma once
  9.  
  10.  
  11. #ifndef __THREADS__
  12. #include <Threads.h>
  13. #endif
  14.  
  15. #ifndef __APPLEEVENTS__
  16. #include <AppleEvents.h>
  17. #endif
  18.  
  19.  
  20. pascal OSErr AEHandleInThread(
  21.                     const AppleEvent*    event,
  22.                     AppleEvent*            reply,
  23.                     AEEventHandlerUPP    handler,
  24.                     long                handlerRefcon,
  25.                     ThreadOptions        options,
  26.                     Size                stacksize);    
  27.  
  28. pascal OSErr AEInstallThreadedEventHandler(
  29.                     AEEventClass        theAEEventClass,
  30.                     AEEventID            theAEEventID,
  31.                     AEEventHandlerUPP    proc,
  32.                     long                handlerRefcon,
  33.                     ThreadOptions        options,
  34.                     Size                stacksize);    
  35.  
  36. #endif // __AETHREADS__